Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
User Interface Constants and Data Types


Panel Responses

A handler of a panel in a dialog box (including applications, printing extensions, printer drivers, and Macintosh system software) can return any value of type OSErr as the result of handling the panel. In addition, a panel handler can return an event of type gxPanelResult, as shown here. This data type is used with the GXHandlePanelEvent message, which is described on page 4-85.

enum {
   gxPanelNoResult            = 0,
   gxPanelCancelConfirmation  = 1
};
typedef long gxPanelResult;
Constant descriptions

gxPanelNoResult
The result field does not currently have any meaning.
gxPanelCancelConfirmation
This result is only valid if the panel event (as described in the previous section) was of type gxPanelUserWillConfirmEvt. After the user confirms the panel, if the panel handler discovers
that the user entered an inappropriate value, the panel handler alerts the user to the problem and generates this response, which tells QuickDraw GX to not confirm the dialog box. This allows the user the opportunity to fix the problem.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help